package com.xiaoshuidi.cloud.module.finance.dal.mysql.finance;

import com.xiaoshuidi.cloud.framework.common.core.KeyValue;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.finance.dal.dataobject.finance.FinanceReconciliationData;
import com.xiaoshuidi.cloud.module.finance.dal.dataobject.finance.YinlianReconciliationDO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;
import java.util.Set;

@Mapper
public interface YinlianReconciliationMapper extends BaseMapperX<YinlianReconciliationDO> {
    int deleteByMerchantCodeAndSettleDate(String merchantCode, String settleDate);
    Set<Long> selectTenantIdByMerchantCode(String merchantCode);
    FinanceReconciliationData selectLeftSummary(String merchantCode, String date, Long tenantId);

    FinanceReconciliationData selectRightSummary(String merchantCode, String date, Long tenantId);

    void markMatchData(String merchantCode, String date, Long tenantId);

    void markNotMatchData(String merchantCode, String date);

    List<KeyValue<String, LocalDate>> selectMerchantAndDate();
}
